package com.pattern.design.designpattern.Xiangyuan;

import com.pattern.design.designpattern.MainActivity;

/**
 * author:harisucici on 2018/10/12 10:24
 * email:harisucici@gmail.com
 * name:
 * todo:
 */
public class TrainTicket implements Ticket {
    private String start;
    private String end;


    /**
     * Instantiates a new Train ticket.
     *
     * @param start the start
     * @param end   the end
     */
    TrainTicket(String start, String end){
        this.start = start;
        this.end = end;
    }

    @Override
    public void showInfo(String seat) {
        MainActivity.systemOut(seat+"_price:$200");
    }
}
